package cn.dnui_lxx432.dnuifood_16110100432.Other;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;


import cn.dnui_lxx432.dnuifood_16110100432.R;


public class myDetails extends AppCompatActivity {
  private TextView username,userpass,phone,address,comment;
  private Button button;
  private String usernames,userpasses,phones,addresses,comments;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my_details);
         usernames = getIntent().getStringExtra("username");
        userpasses = getIntent().getStringExtra("userpass");
        phones = getIntent().getStringExtra("phone");
        addresses = getIntent().getStringExtra("address");
        comments = getIntent().getStringExtra("comment");
        initviews();
        initDate();
    }

    void initDate(){
        username.setText(usernames);
        userpass.setText(userpasses);
        phone.setText(phones);
        address.setText(addresses);
        comment.setText(comments);
        button.setText("详细信息");
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
            }
        });
    }
   void initviews(){
        username=findViewById(R.id.username1);
        userpass=findViewById(R.id.userpass1);
        phone=findViewById(R.id.phone1);
        address=findViewById(R.id.address1);
        comment=findViewById(R.id.comment1);
        button=findViewById(R.id.signin1);
   }

    public void refresh() {

        onCreate(null);

    }
}
